package com.wyf.android.basemodule

import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log

class AidlService : Service() {

    override fun onBind(intent: Intent): IBinder {
        return object : IAidlTestInterface.Stub() {
            override fun helloAidl(
                i: Int,
                l: Long,
                b: Boolean,
                f: Float,
                d: Double,
                s: String?
            ): String {
                Log.d("aidl服务端", "收到aidl信息：i=${i},i=${l},i=${b},i=${f},i=$d},i=${s}")
                return "我已经收到了你发的信息"
            }
        }
    }
}
